module.exports = {
  getCollectionList: getCollectionList,
  getAllCollectionList: getAllCollectionList,
  getSeeCollectionList: getSeeCollectionList,
  getSeeViewList: getSeeViewList,
  getXiaJi: getXiaJi,
  getJiLu: getJiLu,
};
var app = getApp();
var collection_list_nums = 0;//名片夹的用户数
var see_collection_list_nums = 0;//被收藏数
var see_view_list_nums = 0;//被查看数
//获取名片夹记录
function getCollectionList(start, cb) {
  var data = [];
  data["openid"] = app.globalData.openid;
  data["start"] = start;
  wx.request({
    url: app.globalData.API_Base_URL + "/getlist/index/getCollectionList",
    data: data,
    success: function (res) {
      cb(res);
    }
  })
}
//获取所有名片夹记录
function getAllCollectionList(cb) {
  var data = [];
  data["openid"] = app.globalData.openid;
  wx.request({
    url: app.globalData.API_Base_URL + "/getlist/index/getAllCollectionList",
    data: data,
    success: function (res) {
      cb(res);
    }
  })
}
//获取被收藏记录
function getSeeCollectionList(start, cb) {
  var data = [];
  data["openid"] = app.globalData.openid;
  data["start"] = start;
  wx.request({
    url: app.globalData.API_Base_URL + "/getlist/index/getBeCollectionList",
    data: data,
    success: function (res) {
      cb(res);
    }
  })
}
//获取被查看记录
function getSeeViewList(start, cb) {
  var data = [];
  data["openid"] = app.globalData.openid;
  data["start"] = start;
  wx.request({
    url: app.globalData.API_Base_URL + "/getlist/index/getViewList",
    data: data,
    success: function (res) {
      cb(res);
    }
  })
}
//获取下级记录
function getXiaJi(start, cb) {
  var data = [];
  data["openid"] = app.globalData.openid;
  data["start"] = start;
  wx.request({
    url: app.globalData.API_Base_URL + "/getlist/index/getXiaJi",
    data: data,
    success: function (res) {
      cb(res);
    }
  })
}
//获取下级充值记录
function getJiLu(start, cb) {
  var data = [];
  data["openid"] = app.globalData.openid;
  data["start"] = start;
  wx.request({
    url: app.globalData.API_Base_URL + "/getlist/index/getOpenVipList",
    data: data,
    success: function (res) {
      cb(res);
    }
  })
}